package com.ssm.springboot.pojo;

/**
 * 异常响应格式
 *
 * @author
 * @create 2018-07-10 14:23
 **/
public class ErrorInfo<T> {

    public final static Integer ok =200;

    public final static Integer error =100;

    private  String msg;

    private  Integer code;

    private  String url;

    private T data;

    public ErrorInfo() {
    }

    public ErrorInfo(String msg, Integer code, String url, T data) {
        this.msg = msg;
        this.code = code;
        this.url = url;
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
